package com.bcx;


import com.bcx.pojo.Takeout;
import com.bcx.service.TakeoutService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@CrossOrigin
@Api(tags = "处理Takeout请求")
public class TakeoutController {
    @Resource
    TakeoutService takeoutService;
    @PostMapping("/addTakeout")
    @ApiOperation("增加takeout记录")
    public int addTakeout(@RequestBody Takeout takeout){
        int add = takeoutService.add(takeout);
        return add;
    }

}
